//
//  EditMineVC.m
//  HappyRent
//
//  Created by CoderYee on 2017/3/29.
//  Copyright © 2017年 内圈科技. All rights reserved.
//

#import "EditMineVC.h"
#import "Mine_editHeaderCell.h"
#import "Mine_editSubCell.h"
@interface EditMineVC ()

@end

@implementation EditMineVC

-(void)addNavbarView{
    
    self.title=@"个人资料";
}
-(void)registerCellClass{
    
    [super registerCellClass];
    [self.tableView registerClass:[Mine_editHeaderCell class] forCellReuseIdentifier:[Mine_editHeaderCell cellIdentifier]];
    [self.tableView registerClass:[Mine_editSubCell class] forCellReuseIdentifier:[Mine_editSubCell cellIdentifier]];
}
#pragma mark  UITableViewDelegate
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{
    
    return 4;
}
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
    
    if (indexPath.row==0) {
        
        Mine_editHeaderCell  *headerCell=[tableView dequeueReusableCellWithIdentifier:[Mine_editHeaderCell cellIdentifier] forIndexPath:indexPath];
        return headerCell;
        
    }else{
        
     Mine_editSubCell *cell=[tableView dequeueReusableCellWithIdentifier:[Mine_editSubCell cellIdentifier] forIndexPath:indexPath];
     [cell configTableCellindexPath:indexPath];
     return cell;
        
    }
}
#pragma mark  点击事件
-(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{
    
    
    
    
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
